<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Feedback extends Model
{
    protected $table = 'sf_feedback';
    public $timestamps = false;
    protected $guarded = ['_method']; // 黑名单

    /**
     * 获取老师的评价
     */
    public function teachers()
    {
        return $this->hasMany('App\Model\FeedbackTeacher', 'feedback_id', 'id');
    }
}
